<UserControl x:Class="MediaAssistant.Controls.WaitScreen.SmallWaitScreenView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Converters="clr-namespace:MediaAssistant.Converters" IsVisibleChanged="HandleVisibleChanged"        
    Height="Auto" Width="Auto" BorderThickness="0">
	<UserControl.Resources>
		<Converters:InverseVisibilityConverter x:Key="InverseVisibilityConverter" />
	</UserControl.Resources>
	<Grid Background="Transparent">
        <Border Background="LightBlue" Opacity="0.5" BorderThickness="1" BorderBrush="Blue" CornerRadius="5"/>
        <StackPanel x:Name="LayoutRoot"
        Orientation="Horizontal"      
        HorizontalAlignment="Center" Margin="5"
        VerticalAlignment="Center">
            <Canvas RenderTransformOrigin="0.5,0.5"
            HorizontalAlignment="Center"
         VerticalAlignment="Center" Width="24"
         Height="24" Loaded="HandleLoaded"
            Unloaded="HandleUnloaded"  >
                <Ellipse x:Name="C0" Width="4" Height="4"
               Canvas.Left="0"
               Canvas.Top="0" Stretch="Fill"
               Fill="Black" Opacity="1.0"/>
                <Ellipse x:Name="C1" Width="4" Height="4"
               Canvas.Left="0"
               Canvas.Top="0" Stretch="Fill"
               Fill="Black" Opacity="0.9"/>
                <Ellipse x:Name="C2" Width="4" Height="4"
               Canvas.Left="0"
               Canvas.Top="-13" Stretch="Fill"
               Fill="Black" Opacity="0.4"/>
                <Ellipse x:Name="C3" Width="4" Height="4"
               Canvas.Left="0"
               Canvas.Top="0" Stretch="Fill"
               Fill="Black" Opacity="0.7"/>
                <Ellipse x:Name="C4" Width="4" Height="4"
               Canvas.Left="0"
               Canvas.Top="0" Stretch="Fill"
               Fill="Black" Opacity="0.6"/>
                <Ellipse x:Name="C5" Width="4" Height="4"
               Canvas.Left="0"
               Canvas.Top="0" Stretch="Fill"
               Fill="Black" Opacity="0.5"/>
                <Ellipse x:Name="C6" Width="4" Height="4"
               Canvas.Left="0"
               Canvas.Top="0" Stretch="Fill"
               Fill="Black" Opacity="0.4"/>
                <Ellipse x:Name="C7" Width="4" Height="4"
               Canvas.Left="0"
               Canvas.Top="0" Stretch="Fill"
               Fill="Black" Opacity="0.3"/>
                <Ellipse x:Name="C8" Width="4" Height="4"
               Canvas.Left="0"
               Canvas.Top="0" Stretch="Fill"
               Fill="Black" Opacity="0.2"/>
                <Canvas.RenderTransform>
                    <RotateTransform x:Name="SpinnerRotate"
             Angle="0" />
                </Canvas.RenderTransform>
            </Canvas>
            <DockPanel Margin="10,0,0,0" Width="100">
                <TextBlock DockPanel.Dock="Top" Text="{Binding Message}" TextAlignment="Center" FontSize="10"/>
                <ProgressBar DockPanel.Dock="Bottom" Margin="0,3,0,0" Visibility="{Binding ProgressBarVisibility}" Maximum="{Binding Maximum}" Minimum="{Binding Minimum}" Value="{Binding Value}" Height="10"/>
            </DockPanel>
        </StackPanel>
    </Grid>
</UserControl>
